set -x

wav_dir=wav

mkdir -p $wav_dir

wav_link="http://storage.lianjia.com/lianjia-tp/5e36c48bf6b93fcf6a88dee2f15404b0.wav                                                       
http://storage.lianjia.com/lianjia-tp/c05a7eb34fee88cf31782c5cddc18aea.wav
http://storage.lianjia.com/lianjia-tp/7d924992f36b040118ee0d6cefa46aa9.wav
http://storage.lianjia.com/lianjia-tp/e525c893f01cafc4aa03d1507759d8b5.wav
http://storage.lianjia.com/lianjia-tp/76e573617d581dc5e9e4e777ca77e10a.wav
http://storage.lianjia.com/lianjia-tp/451c34e8074bd4fb329afe85ef4f7634.wav
http://storage.lianjia.com/lianjia-tp/d00679f1a5c76b03f394f5e08ebbcbc1.wav"


for i in $wav_link
do
    wget $i -P $wav_dir
done


wavscp=`find $wav_dir -name "*.wav"`

for wav_path in $wavscp
do
    wav=`basename $wav_path .wav`
    echo "$wav `realpath $wav_path`" >> wav.scp
done

wavscp=`find $wav_dir -name "*.wav"`

for wav_path in $wavscp
do
    wav=`basename $wav_path .wav`
    echo "$wav $wav" >> utt2spk
done

cp utt2spk spk2utt



